<%@page language="java" isELIgnored="false" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>员工信息表</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<c:if test="${empty ALL_EMP_LIST}">
    <c:redirect url="emp3"></c:redirect>
</c:if>
<table class="table table-hover">
    <caption>基本员工信息</caption>
    <thead>
    <tr>
        <th>序号</th>
        <th>姓名</th>
        <th>职位</th>
        <th>上司</th>
        <th>入职时间</th>
        <th>工资</th>
        <th>奖金</th>
        <th>部门</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
        <c:forEach var="ei" items="${ALL_EMP_LIST}" varStatus="j">
            <tr>
                <td>${j.count}</td>
                <td>${ei.ename}</td>
                <td>${ei.job}</td>
                <td>${ei.mgr}</td>
                <td>${ei.hireDate}</td>
                <td>${ei.sal}</td>
                <td>${ei.comm}</td>
                <td></td>
                <td>删除 <a href="emp3?type=id&empno=${ei.empNo}">修改</a></td>
            </tr>
        </c:forEach>
    </tbody>
    <tfoot>
        <tr>
            <th style="text-align: center" colspan="9">
                <ul class="pagination">
                    <c:forEach var="i" begin="1" end="${ALL_PAGE}" step="1">
                        <li><a href="emp3?page=${i}">${i}</a></li>
                    </c:forEach>
                </ul>
            </th>
        </tr>
    </tfoot>
</table>

</body>
</html>
